package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Customer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 王先生
 * @Date 2020/12/4 9:08
 * @Version 1.0
 */
@Mapper
public interface CustomerDao {
    List<Customer> getCustomerList(@Param("offSet") Integer offSet,
                                   @Param("rows") Integer rows,
                                   @Param("customerName") String customerName);

    void updateCustomer(Customer customer);

    void saveCustomer(Customer customer);

    void deleteCustomer(String id);
}
